package com.cust.yx.model.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cust.yx.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 地区表
 * </p>
 *
 * @author lei
 * @since 2024-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Region对象", description="地区表")
public class Region extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上级id")
    private Long parentId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "是否包含子节点")
    @TableField(exist = false)
    private boolean hasChildren;

}
